home *** CD-ROM | disk | FTP | other *** search
- //
- // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
- //
- // fxc /T ps_2_0 /DCGC=0 /Fc
- // ..\..\WorkDir\Shaders\ps\ps2_0_shadow_project_pcf.psh
- // ps2_0_shadow_project_pcf.cg
- //
- //
- // Parameters:
- //
- // sampler2D $SrcShadowMap;
- // float $fTexelSize;
- //
- //
- // Registers:
- //
- // Name Reg Size
- // ------------- ----- ----
- // $fTexelSize c0 1
- // $SrcShadowMap s0 1
- //
-
- ps_2_0
- def c1, 0, 0.111111112, 0, 0
- def c2, 1, -1, 0, 0
- def c3, -1, 1, 0, 0
- dcl t0.xy
- dcl_2d s0
- texld r0, t0, s0
- mov r1.y, -c0.x
- mov r1.x, c1.x
- add r8.x, r1.y, t0.x
- add r8.y, r1.x, t0.y
- add r6.xy, r1, t0
- mov r1.y, c0.x
- mov r1.x, c1.x
- add r7.x, r1.y, t0.x
- add r7.y, r1.x, t0.y
- add r3.xy, r1, t0
- add r5.xy, t0, -c0.x
- mov r1.w, c0.x
- mad r4.xy, r1.w, c2, t0
- mad r2.xy, r1.w, c3, t0
- add r1.xy, t0, c0.x
- texld r8, r8, s0
- texld r7, r7, s0
- texld r6, r6, s0
- texld r5, r5, s0
- texld r4, r4, s0
- texld r3, r3, s0
- texld r2, r2, s0
- texld r1, r1, s0
- add r0, r0, r8
- add r0, r7, r0
- add r0, r6, r0
- add r0, r5, r0
- add r0, r4, r0
- add r0, r3, r0
- add r0, r2, r0
- add r0, r1, r0
- mul r0, r0, c1.y
- mov oC0, r0
-
- // approximately 34 instruction slots used (9 texture, 25 arithmetic)
-